		<div class="header">
			<div class="main">
				<a href="<yang:siteurl />" class="logo fl"><img src="__PUBLIC__/img/logo.png" /></a>
				<ul class="header-nav fl">
					<li class="fl"><a href="<yang:siteurl />">首 页</a></li>
					<yang:navlist typeid='0'>
					<li class="fl"><a href='{$navlist.url}'>{$navlist.name}</a></li>
					</yang:navlist>
<!-- 					<li class="fl"><a href="#">首页</a></li>
					<li class="fl"><a href="schoolContest.html">校园大赛</a></li>
					<li class="fl"><a href="schoolUnion.html">校园联盟</a></li>
					<li class="fl"><a href="http:/www.19Dz.com">创业定制</a></li>
					<li class="fl"><a href="orginzeFramework.html">组织架构</a></li>
					<li class="fl"><a href="schoolBusiness.html">校企对接</a></li> -->
				</ul>

				<div class="header_right fl" id="top_login_no">
					<a href="{:U(MODULE_NAME.'/Public/login')}">登录</a>
					<span>▏</span>
					<a href="{:U(MODULE_NAME.'/Public/register')}">注册</a>
				</div>

				<div class="header_right fl" id="top_login_ok" style="display:none;">
					<a href="javascript:void(0)" id="nickname">xxx</a>	
					<span>▏</span>
					<a href="{:U(MODULE_NAME.'/Public/logout')}">退出</a>
				</div>
			</div>
		</div>

<script type="text/javascript" src="__PUBLIC__/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript">

$(function(){
	var $chkurl = "{:U('Public/loginChk')}";
	$.get($chkurl,function(data){
		if (data.status == 1) {
			$('#top_login_no').hide();
			$('#top_login_ok').show();
			
			//$('#top_login_ok').find('span');
			$('#nickname').html(data.nickname);
		}else {			
			$('#top_login_ok').hide();
			$('#top_login_no').show();
		}
	},'json');	
});
</script>